# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pygdbmi
_pkgname=pygdbmi
pkgver=0.11.0.0
pkgrel=5
pkgdesc='Parse gdb machine interface output with Python.'
url='https://pypi.org/project/pygdbmi/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f93a5f0805d3f63a57d0692ecd82354de279f0e7727075aa823150281a5e9a2a38b0bd30ec7116a8e45433dd8c77cafd7afdc43b314e596e1f43a48d14196b23')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

